<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <!--head-->
    <head>
    <meta charset="UTF-8">
    <title><?php echo ((isset($title ) && ($title !== ""))?($title ):"微校云"); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <link rel="stylesheet" href="<?php echo (C("WEUI_CSS")); ?>weui.css">
    <link rel="stylesheet" href="<?php echo (C("TSOO")); ?>">
    <script src="<?php echo (C("JQ")); ?>"></script>
    <script src="<?php echo (C("WEUI_JS")); ?>weui.min.js"></script>
    

    <style>
        #showIOSDialog1 {
            background: #088AEF;
            border-radius: 0;
            font-size: 19px;
            padding: 10px 20px 5px;
        }
        #showIOSDialog1 div {
            float: right;
            padding-top: 10px;
        }
        #showIOSDialog1 img {
            height: 30px;
            margin: 0 auto;

        }
        .weui-cells_checkbox {
            margin: 15px 2px;
            border-radius: 5px;
        }
        .weui-btn_warn {
            position: fixed;
            bottom: -50px;
            /*border-radius: 50px;*/
            background: #19AA19;
            opacity:0.8;

        }
        body{
            margin-bottom: 55px;
        }
    </style>

</head>
</head>
<body>
<!-- 头部 -->

<?php if(C('IS_NAVBAR') != 0): endif; ?>

<!-- /头部 -->

<!-- 主体 -->

    <!--添加乘页面-->
    <a href="javascript:;" class="weui-btn weui-btn_primary ts_nav" id="showIOSDialog1">添加乘客<div><img src="<?php echo (C("HOME_IMG")); ?>plus.png" alt=""></div></a>
    <!--添加乘客页面表单区域-->
    <form action="/WeChat/Bus/index.php/Home/Order/selectPassenger/ticketId/141" method="post">
        <div class="js_dialog" id="iosDialog1" style="display: none;">
            <div class="weui-mask"></div>
            <div class="weui-dialog">
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
                        <div class="weui-cell__bd">
                            <input name="passengerName" class="weui-input"
                                   placeholder="请输入乘车者姓名">
                        </div>
                    </div>


                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">手机号</label></div>
                        <div class="weui-cell__bd">
                            <input name="passengerTel" class="weui-input" type="number" pattern="[0-9]*"
                                   placeholder="请输入手机号">
                        </div>
                    </div>

                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">身份证号</label></div>
                        <div class="weui-cell__bd">
                            <input name="passengerIdCard" class="weui-input" type="number"
                                   placeholder="请输入身份证号">
                        </div>
                    </div>

                    <div class="weui-btn-area">
                        <input type="submit" class="weui-btn weui-btn_primary" value="添加乘客">
                    </div>

                </div>
            </div>
        </div>
    </form>


    <!--bookTicket/ticketId/131-->
    <!--bookTicket/ticketId/131-->

    <!--选中乘客区域-->
    <!--/WeChat/Bus/index.php/Home/Order/bookTicket/ticketId/<?php echo ($v["addr_id"]); ?>-->
    <form action="/WeChat/Bus/index.php/Home/Order/bookTicket/ticketId/<?php echo ($ticketId); ?>" method="post" >
        <div class="weui-cells weui-cells_checkbox">

            <?php if(is_array($psrInfo)): foreach($psrInfo as $key=>$v): ?><label class="weui-cell weui-check__label" for="s<?php echo ($v["psr_id"]); ?>">

                    <div class="weui-cell__hd">
                        <input type="checkbox" class="weui-check" name="checkbox[<?php echo ($v["psr_id"]); ?>]" id="s<?php echo ($v["psr_id"]); ?>">
                        <i class="weui-icon-checked"></i>
                    </div>
                    <div class="weui-cell__bd">
                        <p>姓&nbsp;&nbsp;&nbsp;名：<?php echo ($v["psr_name"]); ?></p>
                        <p>身份证：<?php echo ($v["psr_id_card"]); ?></p>
                    </div>
                </label><?php endforeach; endif; ?>

        </div>
        <input type="submit" class="weui-btn weui-btn_warn" value="选中以上乘客" style="margin-bottom: 50px;">
    </form>
    <!--选中乘客区域-->




<!-- /主体 -->

<!-- 底部 -->



<!--用于将配置注入到js-->
<!--将配置加载到js-->
<script type="text/javascript">
(function(){
	var ThinkPHP = window.Think = {
	    "WEB_API": "<?php echo C('WEB_API');?>",
		"ROOT"   : "/WeChat/Bus", //当前网站地址
		"APP"    : "/WeChat/Bus/index.php", //当前项目地址
		"PUBLIC" : "/WeChat/Bus/Public", //项目公共目录地址
		"DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
		"MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
		"VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
	}
})();
</script>

<!-- 用于加载js代码 -->

    <script>
        $(function () {
            var $iosDialog1 = $('#iosDialog1');
            $('#showIOSDialog1').on('click', function () {
                $iosDialog1.fadeIn(200);
            });
        })

    </script>



<!--顺序不要颠掉-->



<!-- /底部 -->
</body>
</html>